package com.awesumgames.testgame;

import com.awesumgames.awesum.AwesumGlobal.Awesum;
import com.awesumgames.awesum.Game;
import com.awesumgames.awesum.Layer2d;
import com.awesumgames.awesum.Vector3;
import com.awesumgames.awesum.sprites.Sprite;
import com.awesumgames.awesum.sprites.SpriteSet;
import com.awesumgames.awesum.sprites.TileSet;
import com.awesumgames.awesum.layouts.Layout2dDefault;

public class BreakoutPostLayer extends Layer2d {
	public Sprite border;
	public TileSet grid;
	public SpriteSet spriteset;
	public Layout2dDefault layout;
	private final int HEAD_FRONT = 1, HEAD_SIDE = 2, HEAD_BACK = 3;
	
	public BreakoutPostLayer() {
	}
	
	public void load() {
		add(layout = new Layout2dDefault(1f, 0));
		//layout.add(ball = new Sprite(R.raw.ball));
		//layout.add(border = new Sprite(R.raw.border));
		//layout.add(grid = new Sprite(R.raw.grid));
		
		layout.add(grid = new TileSet(R.raw.grid, 4, 4));
		grid.addTile(0, 0);
		grid.addTile(1, 1);
		grid.addTile(3, 3);
		
		super.load(0);
		//border.pos.set(0, 0, 0);
		//grid.pos.set(0f, 0f, 0f);
		//grid.scale.set(.5f, .5f, 1f);
		//ball.pos.set(layout.width / 2f - .5f, layout.height / 2f - .5f, 0f);
	}
	
	public void draw() {
		Game.Shaders.use("tex");
		
		super.draw();
	}
}
